{%extends "base.html"%}
{%block title%}All Tasks{%endblock%}
{%block content%}
     <table class="programs">
        <thead>
        <tr>
        	<th><a href="/all?order={% ifequal order 'name' %}-{% endifequal %}name">Name</a></th>
        	<th><a href="/all?order={% ifequal order 'summary' %}-{% endifequal %}summary">Summary</a></th>
        	<th><a href="/all?order={% ifequal order 'author' %}-{% endifequal %}author">Author</a></th>
        	<th><a href="/all?order={% ifequal order 'date' %}-{% endifequal %}date">Created</a></th>
        	<th><a href="/all?order={% ifequal order 'modified' %}-{% endifequal %}modified">Modified</a></th>
        </tr>
        </thead>
        {% for program in programs %}
 		<tr class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
            <td><a href ="/view?key={{program.key}}"/>{{program.name}}</a></td>
            <td>{{program.summary}}</td>
            <td><a href ="/author?key={{program.author.key}}"/>{{program.author.user.nickname }}</a></td>
            <td>{{ program.date|date:"jS F Y H:i" }}</td>
            <td>{{ program.modified|date:"jS F Y H:i" }}</td>
        </tr>
        {% endfor %}
      </table>
{%endblock%}